<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*-----------------------------------------------------------------------------------------------
change_language()
-----------------------------------------------------------------------------------------------*/
class Change_language extends Front_Controller{

    function Change_language(){
        parent::Front_Controller();
    }

    function index(){
        $CI = &get_instance();		
		$CI->load->module_library('home.detectlang');
		$choose_lang =  $CI->uri->segment(2);
		$CI->load->module_library('home.detectlang');
		$CI->detectlang->change_lang($choose_lang);
		die();
    }
}